<!DOCTYPE HTML>
<html>

<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta name="HandheldFriendly" content="true" />
    <meta name="MobileOptimized" content="320" />
    <link rel="stylesheet" type="text/css" href="css/reset.css"/>
    <link rel="stylesheet" href="./css/jiazai.css">
    <link rel="stylesheet" type="text/css" href="css/animate.css"/>
    <link rel="stylesheet" type="text/css" href="css/mui.min.css"/>
    <link rel="stylesheet" type="text/css" href="css/activation-info.css"/>
    <title>主页</title>
</head>

<body>
    <div id='app'>

        <!-- 加载中动画 -->
        <div id='jiazai-ani' v-if='jiazai'>
            <div class="arc"></div>
            <h1><span>LOADING</span></h1>
        </div>
        <!-- 加载中动画 -->
       
        <div id="com-tit" class='dis-spa'>
        	<div class='cont'>
        		<p class='menu dis-start' @tap="_close();">
	        		<img src="img/back-white.svg" style="width: 22px;height: 22px;" />
        		</p>
        	</div>
        	<div>详细信息</div>
        	<div class='cont' style="opacity: 0;">1</div>
        </div>
        
        <div id="content-wrap">
        	<div class="al-ac-ava">
        		<div class="ac-logo dis-cen">
        			<img src="img/invi-ava.png"/>
        		</div>
        		<p>已激活</p>
        		<p>用户：{{phone}}</p>
        	</div>
        	<div class="information">
        		<h3>信息详情</h3>
        		<div class="dis-spa ac-in-info" style="margin-top: 15px;">
        			<span>激活码：</span>
        			<p v-text='info.code'>-----</p>
        		</div>
        		<div class="dis-spa ac-in-info">
        			<span>激活时间：</span>
        			<p v-text='_date(info.jhtime)'></p>
        		</div>
        		<div class="dis-spa ac-in-info">
        			<span>到期时间：</span>
        			<p v-text='_date(info.dqtime)'>2018-02-05 15:00:55</p>
        		</div>
        		<h4>温馨提示</h4>
        		<p>软件激活到期后若想继续使用，则需要重新购买激活码再次激活，激活后方可使用！</p>
        	</div>
        	<p class='find-btn' @tap="_findWe()">联系客服</p>
        </div>
    </div>
    <script src="js/comm.js" type="text/javascript" charset="utf-8"></script>
    <script src="js/vue.min.js"></script>
    <script src="js/mui.min.js" type="text/javascript" charset="utf-8"></script>
    <script type="text/javascript" charset="utf-8">
    	var init=function(){
    		var par1=plus.webview.currentWebview().opener();
    		var par2=par1.opener();
    		setTimeout(function(){
    			par1.hide();
    			par2.hide();
    			par1.close('none');
    			par2.close('none');
    		},500);
    	};
        var app = new Vue({
            el: '#app',
            data: {
                //加载动画
                jiazai: false,
                //激活相关信息
                info:{},
                phone:JSON.parse(localStorage.getItem('ai_user')).phone
            },
            created: function() {
				this.getData();
            },
            methods: {
            	getData:function(){
            		var This=this;
            		This.jiazai=true;
            		HTTP.post(INVIINFO,{},function(data){
            			This.jiazai=false;
            			if(String(data.status)=='1'){
            				This.info=data;
            			}else{
            				_toast(data.msg);
            				setTimeout(function(){
            					_close();
            				},1500);
            			}
					});
            	}
            }
        });
       
    </script>
</body>

</html>